package restaurant.gui;

import java.io.Serializable;

/**
 * This class implements a single square.
 * 
 */
public class Square implements Serializable{

	private static final long serialVersionUID = 1L;

	public enum Type {
        CLEAN, TABLE_EMPTY, TABLE_FULL, WAITER_EXPERT, WAITER, CUSTOMER, DOOR, KITCHEN, UNKNOWN
    }

    public Type type = Type.CLEAN;
    
    /** Serve per indicare quanti oggetti di un certo tipo ci stanno in una cella.
     *  Per esempio se da quella cella partono 5 camerieri.*/
    public int number_object = 0;

	public Square() {

    }

    /**
     * Set the type of the square
     * 
     * @param type CLEAN, TABLE_EMPTY, TABLE_FULL, WAITER_EXPERT, WAITER, CUSTOMER, DOOR
     */
    public Square(Type type) {
        this.type = type;
    }    

    @Override
    public String toString() {
        return type.toString();
    }
}